#ifndef GETFULLH_H
#define GETFULLH_H

class GetFullHouse
{
	public:
		GetFullHouse(uint8* counts);

		int32 getThreeRank();
		int32 getPairRank();

		bool8 usedJokerForFullHouse();
		bool8 usedJokerForThree();
		bool8 usedJokerForPair();

	protected:
		uint8 *counts, *three, *pair;
		int32 usedJoker;
};

inline bool8
GetFullHouse::usedJokerForFullHouse()
{
	return (bool8)(usedJoker != 0);
}

inline bool8
GetFullHouse::usedJokerForThree()
{
	return (bool8)(usedJoker == 3);
}

inline bool8
GetFullHouse::usedJokerForPair()
{
	return (bool8)(usedJoker == 1);
}

#endif
